<script>
	export default {
		// 小程序有globalData
		globalData: {
			text: 'textData',
			provider: [],
			isLogin(){
				return true;
			}
		},
		// app进入的时候，一定会执行一次（仅仅只有一次）
		onLaunch: function() {
			var that = this
			// 获取支持的平台信息
			uni.getProvider({
				service: 'oauth',
				success: function (res) {
					console.log(res)
					that.globalData.provider = res.provider
				},
			})
			
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<!--App.vue-->
<style lang="scss">
/* Comment */
.hljs-comment,
.hljs-quote {
  color: #696969;
}

/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
  color: #d91e18;
}

/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
  color: #aa5d00;
}

/* Yellow */
.hljs-attribute {
  color: #aa5d00;
}

/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: #008000;
}

/* Blue */
.hljs-title,
.hljs-section {
  color: #007faa;
}

/* Purple */
.hljs-keyword,
.hljs-selector-tag {
  color: #7928a1;
}

.hljs {
  display: block;
  overflow-x: auto;
  background: #fefefe;
  color: #545454;
  padding: 0.5em;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

@media screen and (-ms-high-contrast: active) {
  .hljs-addition,
  .hljs-attribute,
  .hljs-built_in,
  .hljs-builtin-name,
  .hljs-bullet,
  .hljs-comment,
  .hljs-link,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-params,
  .hljs-string,
  .hljs-symbol,
  .hljs-type,
  .hljs-quote {
		color: highlight;
	}

	.hljs-keyword,
	.hljs-selector-tag {
		font-weight: bold;
	}
}

.info-content{
	color:#34495e;
}

.info-content h1,.info-content .__h1,
.info-content h2,.info-content .__h2,
.info-content h4,.info-content .__h4,
.info-content h5,.info-content .__h5,
.info-content h6,.info-content .__h6,
.info-content h3,.info-content .__h3{display: flex;margin: 15px 0;border-radius: 8px;color:#34495e;}

/* #ifdef  MP-WEIXIN */
.info-content .__h1:before,.info-content h1:before{content:"📚";display: inline-block;padding-right: 4px;font-size:20px}
.info-content .__h2:before,.info-content h2:before{content:"🍊";display: inline-block;padding-right: 4px;font-size:20px}
.info-content .__h3:before,.info-content h3:before{content:"📝";display: inline-block;padding-right: 4px;font-size:20px}
.info-content .__h4:before,.info-content h4:before{content:"📌";display: inline-block;padding-right: 4px;font-size:20px}
.info-content .__h5:before,.info-content h5:before{content:"⭐";display: inline-block;padding-right: 4px;font-size:20px}
/* #endif */

/* #ifndef  MP-WEIXIN */
.info-content h1:before{content:"📚";display: inline-block;padding-right: 4px;}
.info-content h2:before{content:"🍊";display: inline-block;padding-right: 4px;}
.info-content h3:before{content:"📝";display: inline-block;padding-right: 4px;}
.info-content h4:before{content:"📌";display: inline-block;padding-right: 4px;}
.info-content h5:before{content:"⭐";display: inline-block;padding-right: 4px;}
/* #endif */

/* #ifndef  MP-WEIXIN */
.info-content h1{font-size:1.4rem;padding: 4px 0px;}
.info-content h2{font-size:1.25rem;padding: 4px 0px;}
.info-content h3{font-size:1.15rem;padding: 4px 0px;}
.info-content h4{font-size:1.05rem;padding: 4px 0px;}
.info-content h5,.info-content h6{font-size:1rem;padding: 4px 0px;}
/* #endif */

/* #ifdef  MP-WEIXIN */
.info-content .__h1{font-size:0.8rem;padding: 6px 0px;line-height: 32px!important;}
.info-content .__h2{font-size:0.825rem;padding: 6px 0px;line-height: 32px!important;}
.info-content .__h3{font-size:0.8rem;padding: 6px 0px;line-height: 32px!important;}
.info-content .__h4{font-size:0.725rem;padding: 6px 0px;line-height: 32px!important;}
.info-content .__h5{font-size:0.6rem;padding: 6px 0px;line-height: 32px!important;}
/* #endif */

.info-content .__pre,.info-content pre{margin: 30rpx 0;background: #f8f8f8 !important;}
.info-content .__pre > code,.info-content pre>code{font-family: "Roboto Mono", Monaco, courier, monospace;}
.info-content .__blockquote,.info-content blockquote {
	border-left: 4px solid #42b983;
	color: rgb(133, 133, 133);
	margin: 2em 0px;
	padding: 10px;
}
.info-content .__p,.info-content p{
	line-height: 1.6rem;
	word-spacing: 0.05rem;
	color:#34495e;
} 
.info-content .__code,.info-content code {
	border-radius: 2px;
	color: rgb(233, 105, 0);
	margin: 0px 2px;
	padding: 3px 5px;
	white-space: pre-wrap;
}

.info-content  ul > li > p:before{content:"👦";padding-right: 4px;}
.info-content  ol > li > p:before{content:"👦";padding-right: 4px;}
</style>